
import { get, post, postFormData } from "./http"

//生产计划

export const productionPlan_added = p => post("/process/save",p) //新增生产计划
export const productionPlan_modify = p => post("/process/update",p) //修改生产计划
export const productionPlan_selectId = p => post("/process/selectId",p) //根据id查询基本信息和原料辅料
export const productionPlan_search = p => post("/process/inquire",p) //查询所有
// export const productionPlan_search = p => post("/process/search",p) //搜索栏
export const productionPlan_delete = p => post("/process/delete",p) //删除生产计划


//生产管理

export const productionManagement_save = p => post("/manage/save",p) //新增生产管理
export const productionManagement_inquire = p => post("/manage/inquire",p) //查看生产管理
export const productionManagement_search = p => post("/manage/search",p) //生产管理搜索
export const productionManagement_update = p => post("/management/update",p) //根据id修改生产管理
export const productionManagement_delete = p => post("/manage/delete",p) //根据id删除生产管理

export const productionManagement_findById = p => post("/manage/selectId",p)// 根据id获取详情

export const productionManagement_selectType = p => post("/management/selectType",p) //根据id删除物料管理

export const manage_getProcessDetail = p => post("/manage/getProcessDetail",p) //生产管理列表




//生产工艺工序
export const scTechnology_save = p => postFormData("/technologys/save",p)  //新增工艺工序
export const scTechnology_inquire = p => post("/technologys/inquire",p)  //查看工艺工序列表
export const scTechnology_search = p => post("/technologys/search",p)  //工艺工序搜索栏（工艺名称）
export const scTechnology_update = p => post("/technologys/update",p)  //根据id修改工艺工序
export const scTechnology_selectId = p => post("/technologys/selectId",p)  //根据id查看工艺工序
export const scTechnology_delete = p => get("/technologys/deletes/",p)  //根据id删除工艺工序
export const scTechnology_findByListNoPage = p => post("/technologys/findByListNoPage",p) //下拉所有工艺工序 也可根据工艺工序名称查询

//系统设置 
    //物料管理

export const materialManagement_add = p => post("/management/save",p) //物料管理新增物料
export const materialManagement_inquire = p => post("/management/inquire",p) //物料管理查看物料（分页）
export const materialManagement_selectAll = p => post("/management/selectAll",p) //物料管理查看物料(所有)
export const materialManagement_delete = p => post("/management/delete",p) //物料管理删除物料
export const materialManagement_select = p => post("/management/select",p) //物料管理根据id查看物料信息
export const materialManagement_update = p => post("/management/update",p) //物料管理修改物料信息
export const materialManagement_search = p => post("/management/search",p) //物料管理搜索物料信息
export const materialManagement_daoru = p => post("/management/import",p) //物料管理导入模板

export const materialManagement_findBylist = p => post("/management/findByList",p) //物料管理列表
export const materialManagement_findBylistNoPage = p => post("/management/findByListNoPage",p) //物料管理列表


